<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link href="https://cdn.jsdelivr.net/npm/animate.css@3.5.1" rel="stylesheet" type="text/css">
</head>
   
    <script src="vue.js"></script>
<body>
    <!-- 做动画的DOM元素，必须是display:block的元素 -->
    <div id="app">
        <input type="button" value="出来吧!" @click="flag=!flag">
        <transition enter-active-class="animated tada" leave-active-class="animated bounceOutDown">
            <p v-if="flag">我是你的小熊</p>
        </transition>
    </div>


    <script>
        var vm = new Vue({
            el:'#app',
            data:{
                flag:false,
            }
        })
    </script>
</body>
</html>